/*
 * @Author: ZAL 2177624751@qq.com
 * @Date: 2024-12-23 14:12:37
 * @LastEditors: ZAL 2177624751@qq.com
 * @LastEditTime: 2025-02-25 11:05:47
 * @FilePath: \moldlifecycle-webc:\Users\21776\Desktop\毕设\shop_app_vue3\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import App from './App'

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import './uni.promisify.adaptor' // UniApp 提供的适配器
import uviewPlus from 'uview-plus'

export function createApp() {
  const app = createSSRApp(App)

  app.use(uviewPlus)
  app.use(createPinia())

  return {
    app,
  }
}
// #endif
